@import (reference) "~weaver-mobile/dist/weaver-mobile.less";

@odocLedger: odoc-ledger;

.odoc-ledger {
  height: 100%;
  .subItem {
    display: none;
  }
  &-list {
    height: calc(~"100% - 45px") !important;
  }
  .subInfo {
    display: flex;
    // justify-content: space-around;
    margin: 0;
    padding: 15 * @hd;
    border-bottom: 1 * @hd solid #ddd;
    background: #ebebebcc;
    > div {
      box-sizing: border-box;
      margin-left: 8 * @hd;
      min-width: 10 * @hd;
      line-height: 21 * @hd;
    }
    .odoc-todo-table-item {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
    }
    .odoc-todo-table-noicon {
      margin-left: 0 * @hd;
    }
  }
  &-table-item-title {
    color: #333;
    font-weight: bold;
    display: inline-block;
    word-break: break-all;
  }
  &-table-item-creater {
    margin-right: 10 * @hd;
    color: rgb(153, 153, 153);
  }
  &-table-item-createdatetime {
    display: inline-block;
    word-break: break-all;
    color: rgb(153, 153, 153);
  }
  &-check {
    background: #0099ff;
    color: white;
  }

  &-detail {
    &-popover {
      .am-popover-item-content {
        display: block;
        width: 100%;
        text-align: center;
        a {
          color: #333;
        }
      }
    }
  }
  .redDot,
  .yellowDot,
  .purpleDot {
    display: inline-block;
    width: 5 * @hd;
    height: 5 * @hd;
    background: red;
    vertical-align: middle;
    border-radius: 100%;
    margin-left: 5 * @hd;
  }
  .yellowDot {
    background: #faa825;
  }
  .purpleDot {
    background: rgb(200, 100, 200);
  }
}

.odoc-ledger-detail {
  .am-list-body {
    border-bottom: 0px solid #ddd;
  }
  .am-list-body div:not(:last-child) .am-list-line {
    border-bottom: 0px solid #ddd;
  }
  .list-view-section-body {
    background: #f2f6fd;
    padding: 20px 0px;
  }
  .wm-list-page-item {
    margin-bottom: 20px;
  }
  .am-flexbox-item .wm-list-page-item-row:nth-child(5) {
    border-bottom: 1px solid #333;
  }
  .am-list-item .am-list-line .am-list-content {
    color: #868686;
  }
  .am-list-item .am-list-line .am-list-extra {
    color: #333;
  }
}
